@textlength-6: 108px;
.cardWrap {
  display: block;
}
.deCard {
  // 覆盖antd的flex，如果设置flex，但是没设置高度，在ie11显示效果有问题
  display: block;
  border: none;
  padding-bottom: 0;
  min-height: 46px;
  &::before {
    border: none;
  }
  + .deCard {
    margin-top: 0;
  }
  :global {
    .am-card-header {
      padding: 0;
      margin-top: 8px;
    }
    .am-card-body {
      border-top: none;
      padding: 0;
      &::before {
        background-color: transparent !important;
      }
    }
  }
  .cardTile {
    width: 100%;
    height: 40px;
    line-height: 40px;
    color: @color-text-base;
    font-weight: bold;
    position: relative;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    background: @fill-base;
    border-bottom: 1px solid #efefef;
    .titleText {
      display: inline-block;
      width: 150px;
      font-size: 12px;
      color: @brand-primary;// @tips-color
      padding-left: 15px;
      text-align: left;
    }
    .delBtn {
      padding-right: 0;
      height: 40px;
      line-height: 40px;
      padding-top: 0;
      padding-right: 15px;
      // height: 22px;
      font-size: 14px;
      // line-height: 1;
      color: @color-link;
      // padding-top: 4px;
      font-weight: 500;
      &:hover {
        color: @color-link;
      }
      &:active {
        color: @color-link;
      }
    }
  }
  .detail {
    color: @color-text-base;
    font-size: 12px;
    text-align: right;
    padding-right: 15px;
    .titleText {
      padding-left: 0;
      width: @textlength-6;
      text-align: right;
    }
  }

  &.listDetail {
    padding-bottom: 0;
    + .listDetail {
      margin-top: 0px;
    }
    .cardTile {
      border-bottom: none;
      height: 22px;
      line-height: 22px;
      .titleText {
        color: @brand-primary;
      }
    }
    :global {
      .am-card-header {
        padding: 0px 15px 0 0;
        margin-top: 0;
      }
      .am-card-body {
        color: @color-text-base;
        font-size: 14px;
        padding: 8px 0 0 0;
        .customFormItemRequired::before {
          display: none;
        }
        &:last-of-child {
          margin-bottom: 0;
        }
      }
    }
  }
}
.detailAddBtn {
  color: @color-link;
  font-size: 14px;
  height: 50px;
  line-height: 50px;
  border-radius: 0;
  margin-top: 8px;
  margin-bottom: 8px;
  :global {
    .am-button-icon{
      margin-right: 0;
    }
  }
  &:hover {
    color: @color-link;
    background-color: @fill-base;
    text-decoration: none;
  }
  &::before {
    border-radius: 0!important;
    border: 1px solid #efefef!important;
  }
}
.rightContent {
  flex: 1;
  :global {
    .am-card:not(.am-card-full) {
      position: static !important;
      &::before {
        border: none !important;
      }
    }
  }
}
